// This syntax would work if the modules return something. The return value is the argument
// for the call back function. (I tested with immediate function pattern but it did not really 
// worked for me).
require(["com/opentext/modules/viewer" ], function(OTV) {

	 debugger;
	 console.log("loading the program ...");
	 OTV.init();
	 OTV.addPage("prvni stranka textu");
	 OTV.addPage("druha stranka textu");
	 OTV.addPage("treti stranka textu");

	 console.log("terminating the program ...");
});
